package homework.akkademo;

import akka.actor.UntypedAbstractActor;
import akka.event.Logging;
import akka.event.LoggingAdapter;

/**
 * 一个被查找的Actor
 */
public class TargetActor extends UntypedAbstractActor {

    LoggingAdapter log = Logging.getLogger(this.getContext().getSystem(), this);

    @Override
    public void onReceive(Object message) throws Throwable {
        log.info("TargetActor receive: {}", message.toString());
    }
}
